package com.my.study.ext;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试
 *
 * @author Carlos
 * @version 1.0.0
 * @date 2021/11/28 22:18
 */
public class ExtTest {

    @Test
    public void test01() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ExtConfig.class);

        CustomApplicationEvent customSource = new CustomApplicationEvent("customSource", "1.0.0");
        context.publishEvent(customSource);


        context.close();
    }

}
